<template>
	<view>
		<web-view :src="`${config.integralStoreUrl}/mobile/?issso=true&oAuthType=hf_login&ciphertext=${ciphertext}&signString=${signString}&source=${source}#/home`"></web-view>
	</view>
</template>

<script lang="ts" setup>
import { onLoad,onNavigationBarButtonTap } from "@dcloudio/uni-app"
import { ref } from 'vue'
import config from '@/utils/config'
const source = ref('')
const ciphertext = ref('')
const signString = ref('')

onLoad(()=>{
	let integralViewData = uni.getStorageSync('integralViewData')
	// #ifdef MP-WEIXIN
	source.value = 'HFWX'
	// #endif
	// #ifndef MP-WEIXIN
	source.value = 'HFAPP'
	// #endif
	ciphertext.value = integralViewData.ciphertext
	signString.value = integralViewData.signString
})

onNavigationBarButtonTap((val)=>{
	if(val.float == 'right'){
		uni.switchTab({
			url:'/pages/personal/index'
		})
	}
})
</script>

<style>

</style>
